/**
 * Project: cmbank-log
 * 
 * File Created at 2011-11-30
 * $Id$
 * 
 * Copyright 2011 6677bank.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * 6677bank Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with 6677bank.com.
 */
package com.bank6677.sync.csm.domain;

import java.util.Date;

/**
 * 申请单操作流水日志
 * 
 * @author guobin
 * @version ApplicationStatFlow.java 2011-11-30 上午09:15:52
 */
public class ApplicationStatFlow {

    private Integer id;

    private Long    applyId;     // 单号

    private String  operationId; // 操作编号

    private String  beforeStatus; // 执行前操作

    private String  afterStatus; // 执行后操作

    private Date    createDt;    // 创建时间

    private Integer operator;    // 操作人

    private String  remark;      // 流水内容

    private Integer logType;     // 日志类型 1客服2机构

    private String  jobType;     // 工作岗位

    private String  logBelong;   //老版日志类型1客服2机构
    

    /**
     * @return the logBelong
     */
    public String getLogBelong() {
        return logBelong;
    }

    /**
     * @param logBelong the logBelong to set
     */
    public void setLogBelong(String logBelong) {
        this.logBelong = logBelong;
        this.logType = new Integer(logBelong);
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    /**
     * @return the logType
     */
    public Integer getLogType() {
        return logType;
    }

    /**
     * @param logType the logType to set
     */
    public void setLogType(Integer logType) {
        this.logType = logType;
    }

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the applyId
     */
    public Long getApplyId() {
        return applyId;
    }

    /**
     * @param applyId the applyId to set
     */
    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    /**
     * @return the operationId
     */
    public String getOperationId() {
        return operationId;
    }

    /**
     * @param operationId the operationId to set
     */
    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    /**
     * @return the beforeStatus
     */
    public String getBeforeStatus() {
        return beforeStatus;
    }

    /**
     * @param beforeStatus the beforeStatus to set
     */
    public void setBeforeStatus(String beforeStatus) {
        this.beforeStatus = beforeStatus;
    }

    /**
     * @return the afterStatus
     */
    public String getAfterStatus() {
        return afterStatus;
    }

    /**
     * @param afterStatus the afterStatus to set
     */
    public void setAfterStatus(String afterStatus) {
        this.afterStatus = afterStatus;
    }

    /**
     * @return the createDt
     */
    public Date getCreateDt() {
        return createDt;
    }

    /**
     * @param createDt the createDt to set
     */
    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    /**
     * @return the operator
     */
    public Integer getOperator() {
        return operator;
    }

    /**
     * @param operator the operator to set
     */
    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    /**
     * @return the remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * @param remark the remark to set
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((afterStatus == null) ? 0 : afterStatus.hashCode());
        result = prime * result + ((applyId == null) ? 0 : applyId.hashCode());
        result = prime * result + ((beforeStatus == null) ? 0 : beforeStatus.hashCode());
        result = prime * result + ((createDt == null) ? 0 : createDt.hashCode());
        result = prime * result + ((operationId == null) ? 0 : operationId.hashCode());
        result = prime * result + ((operator == null) ? 0 : operator.hashCode());
        result = prime * result + ((remark == null) ? 0 : remark.hashCode());
        return result;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ApplicationStatFlow other = (ApplicationStatFlow) obj;
        if (afterStatus == null) {
            if (other.afterStatus != null)
                return false;
        } else if (!afterStatus.equals(other.afterStatus))
            return false;
        if (applyId == null) {
            if (other.applyId != null)
                return false;
        } else if (!applyId.equals(other.applyId))
            return false;
        if (beforeStatus == null) {
            if (other.beforeStatus != null)
                return false;
        } else if (!beforeStatus.equals(other.beforeStatus))
            return false;
        if (createDt == null) {
            if (other.createDt != null)
                return false;
        } else if (!createDt.equals(other.createDt))
            return false;
        if (operationId == null) {
            if (other.operationId != null)
                return false;
        } else if (!operationId.equals(other.operationId))
            return false;
        if (operator == null) {
            if (other.operator != null)
                return false;
        } else if (!operator.equals(other.operator))
            return false;
        if (remark == null) {
            if (other.remark != null)
                return false;
        } else if (!remark.equals(other.remark))
            return false;
        return true;
    }

}
